import { ApiProperty } from '@nestjs/swagger'
import { IsOptional } from 'class-validator'
import { Pagenation } from '@/dtos/pagenation.dto'
import { TRoleStatus } from '@/enum/commom.emun'
export class GetRoleDto extends Pagenation {
  @ApiProperty({ description: '角色名称', required: false })
  @IsOptional()
  roleName: string

  @ApiProperty({ description: '角色编码', required: false })
  @IsOptional()
  roleCode: string

  @ApiProperty({
    description: '角色状态1:启用，2:禁用',
    enum: TRoleStatus,
    required: false,
  })
  @IsOptional()
  status: TRoleStatus
}
